import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ type: 'int', name: 'role' })
  role: number;

  @Column({ type: 'varchar', name: 'username' })
  username: string;

  @Column({ type: 'varchar', name: 'create_time' })
  create_time: string;

  @Column({ type: 'varchar', name: 'update_time' })
  update_time: string;

  @Column({ type: 'varchar', name: 'mobile' })
  mobile: string;

  @Column({ type: 'varchar', name: 'pwd' })
  pwd: string;

  @Column({ type: 'int', name: 'status' })
  status: number;
}
